package org.ourgrid.worker.business.requester;

import java.util.ArrayList;
import java.util.List;

import org.ourgrid.common.internal.IResponseTO;
import org.ourgrid.common.internal.RequesterIF;
import org.ourgrid.worker.business.dao.WorkerDAOFactory;
import org.ourgrid.worker.business.dao.WorkerStatusDAO;
import org.ourgrid.worker.request.WorkerClientIsUpRequestTO;

public class WorkerClientIsUpRequester implements RequesterIF<WorkerClientIsUpRequestTO>{

	public List<IResponseTO> execute(WorkerClientIsUpRequestTO request) {
		WorkerStatusDAO workerStatusDAO = WorkerDAOFactory.getInstance().getWorkerStatusDAO();
		workerStatusDAO.setConsumerAddress(request.getClientAddress());
		workerStatusDAO.setConsumerDeploymentID(request.getClientDeploymentID());
		
		return new ArrayList<IResponseTO>();
	}

}
